package com.example.demo.mapper;

import com.example.demo.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    // 查询所有员工
    public List<Employee> findAll(String keyword);
    
    // 根据ID查询员工
    public Employee findById(int id);
    
    // 新增员工
    public int saveEmployee(Employee employee);
    
    // 更新员工
    public int updateEmployee(Employee employee);
    
    // 删除员工
    public int deleteEmployee(int id);
    
    // 根据部门ID查询员工
    public List<Employee> findByDeptId(int deptId);
}